import requests     #导入requests包

url = 'https://www.bilibili.com'

test = requests.get(url)    #使用requests包的get方法

print(test.text)    #.text

